<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
    public $incrementing = false;

    protected $guarded = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    public function guardian() {
        return $this->hasOne(Guardian::class);
    }

    public function teacher() {
        return $this->hasOne(Teacher::class);
    }

    public function school() {
        return $this->hasOne(School::class);
    }

    public function enterprise() {
        return $this->hasOne(Enterprise::class);
    }
}
